<template>
  <div>
    <div class="mui-content">
      <div
        class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted"
      >
        <div class="mui-scroll">
          <a
            class="mui-control-item mui-active"
            href="javascript:;"
            @click="router1"
          >
            推荐
          </a>
          <a class="mui-control-item" href="javascript:;" @click="router2">
            热点
          </a>
          <a class="mui-control-item" href="javascript:;">
            北京
          </a>
          <a class="mui-control-item" href="javascript:;">
            社会
          </a>
          <a class="mui-control-item" href="javascript:;">
            娱乐
          </a>
          <a class="mui-control-item" href="javascript:;">
            科技
          </a>
          <a class="mui-control-item" href="javascript:;">
            新闻
          </a>
          <a class="mui-control-item" href="javascript:;">
            娱乐
          </a>
        </div>
      </div>
    </div>
    <!-- 这是内容 -->
    <router-view></router-view>
  </div>
</template>

<script>
// import mui from '../../assets/mui/js/mui.min.js'
import mui from '../.././assets/mui/js/mui.min.js'
export default {
  data() {
    return {}
  },
  mounted() {
    mui('.mui-scroll-wrapper').scroll({
      scrollY: false, // 是否竖向滚动
      scrollX: true, // 是否横向滚动
      indicators: true, // 是否显示滚动条
      deceleration: 0.0005, // flick 减速系数，系数越大，滚动速度越慢，滚动距离越小，默认值0.0006
      bounce: true
    })
  },
  methods: {
    router1() {
      this.$router.push('/login/images/1')
    },
    router2() {
      this.$router.push('/login/images/2')
    }
  }
}
</script>

<style lang="less" scoped></style>
